import request from '@/utils/request';

const processDefinitionApi = {};


processDefinitionApi.page = (params) => {
	return request({
		url: '/activiti-api/process-definition/page',
		method: 'get',
		params: params,
	})
}
processDefinitionApi.deploy = (id) => {
	return request({
		url: '/activiti-api/process-definition/deploy/' + id,
		method: 'put',
	})
}

processDefinitionApi.modelPage = (params) => {
	return request({
		url: '/activiti-api/process-definition/model-page',
		method: 'get',
		params: params,
	})
}
processDefinitionApi.delModel = (id) => {
	return request({
		url: '/activiti-api/process-definition/del-model/' + id,
		method: 'delete',
	})
}


export default processDefinitionApi